package cn.xwj.mongoDBtest;

import com.mongodb.client.MongoDatabase;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
       MongoDatabase mongoDatabase=MongoDBCon.MongoDBConInstence();
//       创建集合
        try {
            mongoDatabase.createCollection("thinkjoy");
            System.out.println("集合创建成功");
        }catch (Exception e){
            e.printStackTrace();
            System.out.println("集合创建失败");
        }

    }
}
